﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using LoungeRepo.Normalizer;

namespace Test.LoungeRepo.Normalizer
{
    [TestFixture]
    public class testAllFieldsOfObjectType
    {
        [Test]
        public void Private_fields_in_base_class()
        {
            var d = new DerivedEntity();
            var fields = d.AllFieldsOfObjectType();

            foreach(var f in fields)
                Console.WriteLine("field: {0}", f.Name);

            Assert.AreEqual(4, fields.Count());
        }
    }
}
